//
//  MADishManageViewController.m
//  meiang_edu
//
//  Created by 栋 on 2019/1/15.
//  Copyright © 2019年 com.meiang.meiang_edu. All rights reserved.
//

#import "MADishManageViewController.h"
#import "MAAlbumListCell.h"
@interface MADishManageViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (weak, nonatomic) IBOutlet UITableView *tableView;

/**
 数据源
 */
@property (nonatomic ,strong) NSMutableArray * dataSource;

@end

@implementation MADishManageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self setUpTableView];
}

- (void)setUpTableView{
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.tableFooterView = [UIView new];
    [self.tableView registerNib:[UINib nibWithNibName:@"MAAlbumListCell" bundle:nil] forCellReuseIdentifier:@"MAAlbumListCell"];
    self.tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingTarget:self refreshingAction:@selector(headerRefresh)];
}

- (void)headerRefresh{
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.dataSource.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    MAAlbumListCell * cell =[tableView dequeueReusableCellWithIdentifier:@"MAAlbumListCell" forIndexPath:indexPath];
    
    return cell;
}


@end
